"""
# -*- coding: utf-8 -*-
Time    : 2025/7/22 下午2:34
Author  : Micah
File    : test_module.py
Function:
"""


def test_ehlo(smtp_connection):
    """
    测试smtp_connection fixture
    :param smtp_connection:
    :return:
    """
    response, msg = smtp_connection.ehlo()
    assert response == 250
    smtp_connection.extra_attr = 'test'
    assert 0  # 为了展示，强制失败


def test_noop(smtp_connection):
    """
    测试smtp_connection fixture
    :param smtp_connection:
    :return:
    """
    response, msg = smtp_connection.noop()
    assert response == 250
    assert smtp_connection.extra_attr == 0  # 为了展示，强制失败
